<?php

class config
{
	var $site_id;
	var $sitename;
	var $iptables;
	var $language;
	var $interface;
	var $bandwith;
	
	function __construct($site_id = 1)
	{
		$sql_config = '
			SELECT * FROM `config`
			WHERE `site_id` = "' .$site_id. '"';
		$result_config = query($sql_config);
		$config = mysql_fetch_object($result_object);
		mysql_free_result($result_config);
		
		foreach ($config as $key => $value)
		{
			$this->$key = $value;
		}
	}
}

?>